package com.example.xxpk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangguihong
 * @since 2025-02-19
 */
@Getter
@Setter
@TableName("purchase_record")
@ApiModel(value = "PurchaseRecord对象", description = "")
public class PurchaseRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("购买记录ID")
    @TableId(value = "purchase_record_id", type = IdType.AUTO)
    private Integer purchaseRecordId;

    @ApiModelProperty("用户 ID")
    private Integer userId;

    @ApiModelProperty("购买类型(1装扮 2宝箱 3 超级宝箱 4道具 )")
    private Integer type;

    @ApiModelProperty("类型id")
    private Integer typeId;

    @ApiModelProperty("购买数量")
    private Integer number;

    @ApiModelProperty("购买时间")
    private LocalDateTime purchaseTime;
}
